package com.mdxq.springboot04_mybatis_plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author WanJl
 * @version 1.0
 * @title Manager
 * @description 管理员实体类
 * @create 2024/11/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Manager {
    //@TableId(type = id生成策略)：为某个类单独设置id生成策略
    //@TableId(type = IdType.ASSIGN_ID) 通过雪花算法生成的id
    @TableId(type = IdType.AUTO) //自增id
    private Integer id;
    private String username;
    private String password;
    private Boolean status;
    private String avatar;
    private Integer roleId;
    private Boolean isSuper;
    private Integer createTime;
    private Integer updateTime;

}
